<?php
// +----------------------------------------------------------------------
// | Description: 岗位管理
// +----------------------------------------------------------------------
// | Author: orchief
// +----------------------------------------------------------------------

namespace app\admin\controller;

use app\common\controller\Rest;

class Posts extends Rest
{
    public function _initialize()
    {
        parent::_initialize();
        $this -> abort(!$this -> isClient, 'Permission denied', 403);
    }
    public $modelName = 'Post';
    public function index()
    {
        $param = $this->param;
        $keywords = empty($param['keywords']) ? $param['keywords'] : '';
        $data = self::$model->getDataList($keywords);
        $this->jsonData($data);
    }
}
